package team.hyznrj.studentsys.dao.repository.account;

import org.springframework.data.jpa.repository.JpaRepository;
import team.hyznrj.studentsys.entity.account.AccountInfo;

import java.util.List;

/**
 * @author ReMidDream
 * @date 2018-04-23 15:45
 **/
public interface AccountInfoRepository extends JpaRepository<AccountInfo,String> {

    AccountInfo findByUserAccount(String userAccount);

    List<AccountInfo> findByCollegeMajorId (String collegeMajorId);

    List<AccountInfo> findByRoleId (String roleId);

}
